package com.aisino.encrypt.entity;

/**
 * 对称加密算法
 */
public enum Symmetric {
    /**
     * DES加密
     */
    DES("DES",56),
    /**
     * 3DES加密
     */
    DES_EDE("DESede",168),
    /**
     * AES加密
     */
    AES("AES",128);
    //算法
    private String algorithm;
    //密钥位数
    private int keySize;

    Symmetric(String algorithm, int keySize) {
        this.algorithm = algorithm;
        this.keySize = keySize;
    }

    public String getAlgorithm() {
        return this.algorithm;
    }

    public int getKeySize() {
        return this.keySize;
    }
}
